﻿@page "/workflow-definitions"
@rendermode InteractiveServer
<WorkflowDefinitionListWrapper EditWorkflowDefinition="@OnEditWorkflowDefinition" />

@code {
    [Inject] NavigationManager NavigationManager { get; set; } = default!;
    
    private void OnEditWorkflowDefinition(string definitionId)
    {
        NavigationManager.NavigateTo($"workflow-definitions/{definitionId}");
    }
}